Material Design has
three-dimensional, 3D, qualities that are reflected in its use of surfaces,
depth, and shadows. Material design reflects
these qualities in how surfaces are displayed and
move across the material UI. The primary material
surface is opaque white with one DP thickness
and casts a shadow. All UI elements in material design result from modifications to this surface. Some helpful material
components for the surface are App bar, card. The App bar provides
the content and actions related to
the current screen. It's used for branding, screen titles,
navigation, and actions. The app bar's
position is fixed and the component sets the
appropriate CSS positioning. The app bar component
in material UI is just a paper component with
some unique CSS properties. To change the app bar's height, you can create a
custom CSS class and override the minimum
height property. Here's an example of how a basic app bar looks with the code provided
on the slide. Cards are surfaces that display content and actions
on a single topic. There are various sub-components
of cards that can be used independently
to display content. For example, CardHeader, CardMedia, CardContent,
CardActions, etc. The card should be
easy to scan for relevant and actionable
information. Elements such as text
and images should be placed on them in a way
that indicates hierarchy. CardHeader. It is a
complex component with the Flexbox set as the root
component with an avatar, title, sub-header and Action. CardMedia. It is a single
div element that sets background image
properties to cover the available space
with an image. CardContent. It wraps children in a single div and applies 16 pixels and 24 pixels of padding to bottom when it is
The Last Child in the group. CardActions. CardActions is just
a flexbox component that wraps the children in
eight pixels of padding. Here's an example of a
card using an image to reinforce the content with the code provided on the slide.